<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	a{
		text-align: center;
		text-decoration: none;
		color: blue; 
	}
	a:hover{
		color:red;
	}
	table,tr,td,th{
		border: 1px black solid;
		border-collapse: collapse;
	}
</style>
</head>
<body style="margin: 0px;">
	<h3>流程实例</h3>
	<table width="100%">
		<Tr>
			<th>序号</th>
			<Th>流程定义编号</Th>
			<Th>流程定义KEY</Th>
			<Th>流程定义部署ID</Th>
			<Th>版本</Th>
			<Th>BPMN</Th>
			<Th>PNG</Th>
			<Th>删除</Th>
		</Tr>
		<c:forEach items="${requestScope.list }" varStatus="st" var="p">
			<Tr align="center">
				<Td>${st.count }</Td>
				<Td>${p.id }</Td>
				<Td>${p.key }</Td>
				<Td>${p.deploymentId }</Td>
				<Td>${p.version }</Td>
				<Td>
					<a target="_blank" href="${pageContext.request.contextPath }/showResources/${p.deploymentId}/${p.resourceName }.do">查看BPMN</a>
				</Td>
				<Td>
					<a target="_blank"  href="${pageContext.request.contextPath }/showResources/${p.deploymentId}/${p.diagramResourceName }.do">查看PNG</a>
				</Td>
				<Td>
					<A onclick="return confirm('你确定要删除吗?')" href="${pageContext.request.contextPath }/delProcessDefinition/${p.deploymentId}.do">删除</A>
				</Td>
			</Tr>
		</c:forEach>
	</table>
</body>
</html>